

#include					"Graphics.hh"

Graphics::Graphics()
	: _sizeX(20), _sizeY(20), _window(new sf::RenderWindow(sf::VideoMode(_sizeX * 50, _sizeY * 50), "My window")), _map(new Map(*_window))
{
}

Graphics::~Graphics()
{
}

void						Graphics::run()
{
	while (_window->isOpen())
    {
       /* sf::Event event;
        while (_window->pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                _window->close();
        }*/
        _window->clear();
        _map->drawMap();
        _window->display();
        sleep(0.01);
    }
}